<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入echarts -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script
    
</head>
<body>
    <!-- <div id="main"  style="width:600px; height:550px;"></div> -->
<!-- 
    <script>
        <!-- 题1 -->
        <!-- function f(y){
            let x=y*y;
            return x;
        }
        for(x=0;x<5;x++){
            y=f(x);
            document.write(y);//014916
            console.log(y);
        }  -->

        
    </script> -->


    <script>
        <!-- 题2 -->
        function foo(x){
            let num=5;
            bar=function(y){
                return (x+y+(++num));
            }
            console.log(foo(2));
            console.log(bar(10));
            console.log(bar(10));
        }

    </script>
    

</body>
</html>